<table border="0" align="center" cellpadding="0" cellspacing="1" class="list">
  <tr>
    <td  align="center">选择</td>
    <td  align="center">是否发布</td>
    <td  align="center">ID</td>
    <td  align="center">图片</td>
	<td  align="center">名称</td>
	
	<td  align="center">活动周期<br />(每期送出一个)</td>
	<?php if (SystemProperties::$platform!='renren') { ?>
    <td  align="center">幸运数</td>
    <?php } ?>
	
    <td  align="center">市值</td>
	<td  align="center">价格</td>
	<td  align="center">剩余数量</td>
	<td  align="center">人气</td>
	<td  align="center">热度</td>
    <td  align="center">描述</td>
    <td  align="center">管理</td>
    <td  align="center">点击详情</td>
  </tr>
  <?php if(isset($productList) && !empty($productList)){ ?>
<?php foreach($productList as $key=>$profiles){ 
    $product_link = sprintf(SystemProperties::$convert_link, $profiles['g_products']['g_id']);
    ?>
  <tr>
    <td align="center"><label><?php echo $form->checkbox($profiles['g_products']['g_id']); ?></label></td>
    
    <td>
    <?php if($profiles['g_products']['in_list']==1){?>
    	<strong><span style="background-color:green;color:white">&nbsp;&nbsp;&nbsp;已发布&nbsp;&nbsp;&nbsp;</span></strong><br /><br />
    	<a href="<?php echo SystemProperties::$app_host;?>/product/updateProductInList/<?=$profiles['g_products']['g_id']?>/0/<?=$curPage?>/1" >设为隐藏</a>
    <?php }else{ ?>
    	<strong><span style="color:#888">隐藏中</span></strong><br /><br />
    	<a href="<?php echo SystemProperties::$app_host;?>/product/updateProductInList/<?=$profiles['g_products']['g_id']?>/1/<?=$curPage?>/1" >点此发布</a>
    
    <?php }?>
    </td>
    
    <td align="center"><?php echo $profiles['g_products']['g_id']?>　</td>
    <td align="center"><img src="<?php echo SystemProperties::$path.$profiles['g_products']['g_img']?>" width="80" height="80" /></td>
    <td align="center"><a href="<?=$product_link?>" target="_blank"><?php echo $profiles['g_products']['g_name']?></a>　</td>
        <td align="center" >每隔 <span style="color:red"><?php echo intval($profiles['g_products']['g_timesplit']/6)/10?></span> 小时<br />送1个　</td>
    <?php if (SystemProperties::$platform!='renren') { ?>
    <td align="center" >第 <span style="color:red"><?php echo $profiles['g_products']['g_lucknum']?></span> 个<br />申请者获得　</td>
    <?php } ?>
	    <td align="center"><?php echo $profiles['g_products']['g_jiazhi']?></td>
	     <td align="center"><?php echo $profiles['g_products']['g_price']?></td>
		  <td align="center"><?php echo $profiles['g_products']['g_number']?></td>
		    <td align="center"><?php echo $profiles['g_products']['popularity']?></td>
		    <td  align="center"><?php if($profiles['g_products']['g_hot']==1){echo "热";}else{echo "";}?></td>
    <td align="center"><?php echo $toolTip->truncate($profiles['g_products']['g_description'],8);?></td>
    <td align="center"><a href="<?php echo SystemProperties::$app_host;?>/product/modifyPruduct/1/<?php echo $profiles['g_products']['g_id']?>" >修改</a>&nbsp;&nbsp;</td>
    <td><a href="<?php echo SystemProperties::$app_host;?>/product/showClickLogs/<?=$profiles['g_products']['g_id']?>" target="_blank">点击详情</a></td>
  </tr>
  <?php }?>
  </table>
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="page">
      <tr>
        <td width="30%"><input type="button" name="selectAll" value="全选" onClick="CheckAll(form2);"><input type="button" name="selectOther" value="反选" onClick="CheckOthers(form2);">&nbsp;<input type="submit" name="delAll" value="全部删除" onClick="return checkForm(form2);"></td>
       <td width="70%" align="center">
        <div class="div1">
        <ul class="d4" style="font-size:15px">
        <?php for ($i=1;$i<=$totalPage;$i++) { 
            if ($i==$curPage) { ?>
                <li style="border:0px"><b><?=$i?></b></li>
          <?php   } else { ?>
        <li><a href="<?=SystemProperties::$app_host?>/product/getProductList/<?="{$i}/{$isCharge}/{$time}/{$lastNew}"?>" style="padding:10px"><?=$i?></a></li>
        <?php } ?>
        <?php } ?>
        </ul></div>
        
        <div class="div1"><ul class="s2"><li></li></ul></div>        </td>
      </tr>
    </table>
<?php } ?>